//
//  DnpPickerImageDelegate.m
//  dnp_plugin
//
//

#import "DnpPickerImageDelegate.h"

@implementation DnpPickerImageDelegate

- (instancetype)initWithResult:(FlutterResult)result {
    self = [super init];
    if (self) {
        _result = result;
    }
    return self;
}

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
    [picker dismissViewControllerAnimated:YES completion:nil];
    self.result(nil);
}

@end
